import cloneDeep from "lodash/cloneDeep";

export default {
  // 重置vuex本地储存状态
  resetStore(state) {
    Object.keys(state).forEach((key) => {
      state[key] = cloneDeep(window["storeState"][key]);
    });
  },
  setRole(state, role) {
    state.role = role;
  },
  setButtons(state, arr) {
    state.buttons = arr;
  },
};
